package aero.team.foursquare.webapp;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.request.flow.RedirectToUrlException;

import fi.foyt.foursquare.api.FoursquareApi;

/**
 * Homepage
 */
public class HomePage extends WebPage {

	private static final long serialVersionUID = 1L;
	

	
	
	public HomePage() {

		FoursquareApi foursquareApi =
				new FoursquareApi(WicketApplication.CLIENT_ID, 
						WicketApplication.CLIENT_SECRET, 
						WicketApplication.CALLBACKURL);
		throw new RedirectToUrlException(foursquareApi.getAuthenticationUrl());
	}
	
}
